import service from '@/utils/request'

export const questionList = (params) => {
  return service({
    url: '/manager/question/list',
    method: 'get',
    params
  })
}

export const questionAdd = (data) => {
  return service({
    url: '/manager/question/add',
    method: 'post',
    data
  })
}

export const questionEdit = (data) => {
  return service({
    url: '/manager/question/edit',
    method: 'post',
    data
  })
}

export const questionDelete = (id) => {
  return service({
    url: `/manager/question/delete/${id}`,
    method: 'post'
  })
}